Remove use of unlikely -- it's not defined on all systems.
authorchris@kneesaa.uk.xensource.com <chris@kneesaa.uk.xensource.com>
Fri, 30 Jun 2006 13:15:12 +0000 (14:15 +0100)
committerchris@kneesaa.uk.xensource.com <chris@kneesaa.uk.xensource.com>
Fri, 30 Jun 2006 13:15:12 +0000 (14:15 +0100)
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
tools/xenstat/libxenstat/src/xenstat.c

index d6521f8edfa959fef6e35e4c017db8bb1793250e..06e0142cb00afefc6d2070a9f18cd0deb4e5c5ad 100644 (file)
@@ -760,10 +760,10 @@ static int read_attributes_vbd(const char *vbd_directory, const char *what, char
 
        sprintf(file_name, "%s/%s/%s", SYSFS_VBD_PATH, vbd_directory, what);
        fd = open(file_name, O_RDONLY, 0);
-       if (unlikely(fd==-1)) return -1;
+       if (fd==-1) return -1;
        num_read = read(fd, ret, cap - 1);
        close(fd);
-       if (unlikely(num_read<=0)) return -1;
+       if (num_read<=0) return -1;
        ret[num_read] = '\0';
        return num_read;
 }